package com.ruoyi.teaching.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teaching.mapper.InterviewMasteryDetailMapper;
import com.ruoyi.teaching.domain.InterviewMasteryDetail;
import com.ruoyi.teaching.service.IInterviewMasteryDetailService;

/**
 * 面试掌握情况记录详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-02
 */
@Service
public class InterviewMasteryDetailServiceImpl implements IInterviewMasteryDetailService 
{
    @Autowired
    private InterviewMasteryDetailMapper interviewMasteryDetailMapper;

    /**
     * 查询面试掌握情况记录详情
     * 
     * @param id 面试掌握情况记录详情主键
     * @return 面试掌握情况记录详情
     */
    @Override
    public InterviewMasteryDetail selectInterviewMasteryDetailById(Long id)
    {
        return interviewMasteryDetailMapper.selectInterviewMasteryDetailById(id);
    }

    /**
     * 查询面试掌握情况记录详情列表
     * 
     * @param interviewMasteryDetail 面试掌握情况记录详情
     * @return 面试掌握情况记录详情
     */
    @Override
    public List<InterviewMasteryDetail> selectInterviewMasteryDetailList(InterviewMasteryDetail interviewMasteryDetail)
    {
        return interviewMasteryDetailMapper.selectInterviewMasteryDetailList(interviewMasteryDetail);
    }

    /**
     * 新增面试掌握情况记录详情
     * 
     * @param interviewMasteryDetail 面试掌握情况记录详情
     * @return 结果
     */
    @Override
    public int insertInterviewMasteryDetail(InterviewMasteryDetail interviewMasteryDetail)
    {
        interviewMasteryDetail.setCreateTime(DateUtils.getNowDate());
        return interviewMasteryDetailMapper.insertInterviewMasteryDetail(interviewMasteryDetail);
    }

    /**
     * 修改面试掌握情况记录详情
     * 
     * @param interviewMasteryDetail 面试掌握情况记录详情
     * @return 结果
     */
    @Override
    public int updateInterviewMasteryDetail(InterviewMasteryDetail interviewMasteryDetail)
    {
        return interviewMasteryDetailMapper.updateInterviewMasteryDetail(interviewMasteryDetail);
    }

    /**
     * 批量删除面试掌握情况记录详情
     * 
     * @param ids 需要删除的面试掌握情况记录详情主键
     * @return 结果
     */
    @Override
    public int deleteInterviewMasteryDetailByIds(Long[] ids)
    {
        return interviewMasteryDetailMapper.deleteInterviewMasteryDetailByIds(ids);
    }

    /**
     * 删除面试掌握情况记录详情信息
     * 
     * @param id 面试掌握情况记录详情主键
     * @return 结果
     */
    @Override
    public int deleteInterviewMasteryDetailById(Long id)
    {
        return interviewMasteryDetailMapper.deleteInterviewMasteryDetailById(id);
    }
}
